﻿<UserControl x:Class="SoftSource.Timecard.Views.EntryProjectCategoryAssociationEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit">

    <controlsToolkit:BusyIndicator x:Name="Busy"
                                   HorizontalContentAlignment="Stretch"
                                   VerticalContentAlignment="Stretch">
        <Grid x:Name="LayoutRoot">
            <StackPanel>
                <ComboBox DisplayMemberPath="Name"
                          ItemsSource="{Binding Projects}"
                          SelectedItem="{Binding ProjectID, Converter={StaticResource ProjectIDConverter}, Mode=TwoWay}"
                          Margin="0,4" />
                <ComboBox DisplayMemberPath="Name"
                          ItemsSource="{Binding Categories}"
                          SelectedItem="{Binding CategoryID, Converter={StaticResource CategoryIDConverter}, Mode=TwoWay}"
                          Margin="0,4" />
                <Button Content="Close"
                        Margin="0,4"
                        Click="Close_Click" />
            </StackPanel>
        </Grid>
    </controlsToolkit:BusyIndicator>
</UserControl>